package priv.yiyuan.example.design.wrapper;

/**
 * 标准简历建造者
 * <p>
 * 建造者模式-具体建造者
 *
 * @author YiYuan
 * @data 2025/9/3
 * @apoNote
 */
public class StandardResumeBuilder implements ResumeBuilder {

    private Resume resume;

    public StandardResumeBuilder() {
        this.resume = new Resume();
    }

    @Override
    public void buildBasicInfo(String info) {
        resume.setBasicInfo(info);
    }

    @Override
    public void buildEducation(String edu) {
        resume.addEducation(new TextElement(edu).render());
    }

    @Override
    public void buildWorkExperience(String workExp) {
        resume.addWorkExperience(new TextElement(workExp).render());
    }

    @Override
    public void buildProjects(String project) {
        // 标准简历不包含项目经验
    }

    @Override
    public void buildSkills(String skill) {
        // 标准简历不包含技能列表
    }

    @Override
    public void buildAwards(String award) {
        // 标准简历不包含荣誉奖项
    }

    @Override
    public void buildPublications(String publication) {
        // 标准简历不包含发表论文
    }

    @Override
    public Resume build() {
        return this.resume;
    }
}
